package cn.wowjoy.pda.android_pharmacy.model;

import android.content.Context;
import android.graphics.drawable.Drawable;

/**
 * Created by sinyo on 2017/7/20.
 */

public class PharmacyInfo extends BaseModel {
    private int res;
    private String pharmacyName;
    private Context ct;

    public PharmacyInfo(int res, String pharmacyName, Context cx) {
        this.res = res;
        this.pharmacyName = pharmacyName;
        this.ct = cx;
    }

    public int getRes() {
        return res;
    }

    public void setRes(int res) {
        this.res = res;
    }

    public String getPharmacyName() {
        return pharmacyName;
    }

    public void setPharmacyName(String pharmacyName) {
        this.pharmacyName = pharmacyName;
    }

    public Context getCx() {
        return ct;
    }

    public void setCx(Context cx) {
        this.ct = cx;
    }
    public Drawable getResDrawable() {
        return ct.getResources().getDrawable(res);
    }
}
